<?php
namespace app\index\validate;
use think\Validate;
class User extends Validate
{
    protected $rule = [
        'name' => 'require|min:3|max:10',
        'price' => 'number|between:1,100',
        'email' => 'email',
    ];

     protected $message = [
         'name.require' =>'zAc用户名不能为空',
         'title.min' =>'用户密码不能少于三位',

     ];

}
